/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataConverters.DataReaders.readersImpl;

import DataConverters.DataReaders.AbstractDataReader;
import DataConverters.exceptions.DataReaderException;
import DataConverters.interfaces.IConvertable;
import DataConverters.interfaces.IConvertableSwingComponent;
import common.gui.progress.IProgressItem;

/**
 *
 * @author Nobody
 */
public class JTableReader extends AbstractDataReader {

    public JTableReader(IProgressItem progressLabel, IConvertable source) {
        super(progressLabel, source);
    }

    @Override
    public void read() throws DataReaderException {
        IConvertableSwingComponent excelTable = (IConvertableSwingComponent) source;
        formulasList = excelTable.getDataFormulaList();
    }
}
